<ul class="row list-unstyled">
  <% @positions.each do |position| %>
    <li class="col-sm-8">
      <label class="col-sm-2">公司职位</label>
      <span class="col-sm-4"><%= position.position_name %></span>
      <% unless ['主理人', '产品总监', '导师', '市场总监', '市场专员', '运营总监', '前台', '服务顾问', '财务总监', '会计/出纳', '人资行政总监', 'HR/行政'].include?(position.position_name) %>
      <%= link_to '删除','javascript:void(0)',
        onclick: "ajax_function('/admin/company_configurations/destroy_configuration', 'position', 'PositionConfiguration', #{position.id})",
        id: "delete_position#{position.id}" %>
    <% end %>
    </li>
  <% end %>
  <%= form_for(@position, url: create_position_admin_company_configurations_path, html: { multipart: true}) do |f| %>
    <table>
      <tr>
        <td><%= f.label :公司职位 %></td>
        <td><%= f.text_field :position_name, required: true, style: "width:8em" %></td>
      </tr>
      <tr>
        <td colspan='2'>
          <%= f.submit "新增" %>
        </td>
      </tr>
    </table>
  <% end %>
</ul>
